<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class ModifyMessageContentTypeColumn extends AbstractMigration
{

    public function change()
    {
        $this->table("message")
            ->changeColumn('content_type', 'enum', ['values' => 'text,notice,file,audio,image,card_message,system_hint', 'default' => 'text', 'comment' => '消息类型'])
            ->save();
    }
}
